package com.dries.portal.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dries.portal.admin.bo.AdminUserDetails;
import com.dries.portal.admin.dto.UmsAdminParam;
import com.dries.portal.admin.entity.UmsAdmin;
import com.dries.portal.admin.entity.UmsResource;

import java.util.List;

/**
 * 后台用户表
 *
 * @author dries
 * @email samphsanie@gmail.com
 * @date 2020-09-22 18:23:26
 */
public interface IUmsAdminService extends IService<UmsAdmin> {

    /**
     * 根据用户名查找用户
     * @param username
     * @return
     */
    UmsAdmin getAdminByUserName(String username);
    /**
     * 获取指定用户的可访问资源
     */
    List<UmsResource> getResourceList(Long adminId);
    /**
     * 获取用户信息
     */
    AdminUserDetails loadUserByUsername(String userId);
    /**
     * 注册功能
     */
    UmsAdmin register(UmsAdminParam umsAdminParam);
}

